beginAsyncSection

open fun beginAsyncSection(@NonNull methodName: String, cookie: Int)(source)

Writes a trace message to indicate that a given section of code has begun. Must be followed by a call to endAsyncSection with the same methodName and cookie. Unlike beginSection and endSection, asynchronous events do not need to be nested. The name and cookie used to begin an event must be used to end it.

Parameters

methodName

The method name to appear in the trace.

cookie

Unique identifier for distinguishing simultaneous events